// 《机构网络图》页面接口文件
import request from '@/utils/request.js';

/**查询 机构网络图接口 */
export function listInstitution(query){
  return request({
    url: '/system/diagram/list',
    method: 'get',
    params: query
  })
}
/**新增 */
export function addInstitution(data){
  return request({
    url: '/system/diagram',
    method: 'post',
    data
  })
}
/**编辑 */
export function editInstitution(data){
  return request({
    url: '/system/diagram',
    method: 'put',
    data
  })
}
/**删除 */
export function deleteInstitution(ids){
  return request({
    url: `/system/diagram/${ids}`,
    method: 'delete'
  })
}
/**详情 */
export function detailInstitution(ids){
  return request({
    url: `/system/diagram/${ids}`,
    method: 'get'
  })
}

/**
 * 
 * 《人员任命》 页面接口
 * 
 * 
 */


/**查询 机构网络图接口 */
export function listAppointment(query){
  return request({
    url: '/system/appointment/list',
    method: 'get',
    params: query
  })
}
/**新增 */
export function addAppointment(data){
  return request({
    url: '/system/appointment',
    method: 'post',
    data
  })
}
/**编辑 */
export function editAppointment(data){
  return request({
    url: '/system/appointment',
    method: 'put',
    data
  })
}
/**删除 */
export function deleteAppointment(ids){
  return request({
    url: `/system/appointment/${ids}`,
    method: 'delete'
  })
}
/**详情 */
export function detailAppointment(ids){
  return request({
    url: `/system/appointment/${ids}`,
    method: 'get'
  })
}
